package com.xuecheng.auth.controller;

import com.xuecheng.ucenter.model.dto.RegisterDto;
import com.xuecheng.ucenter.service.RegisterService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


/**
 * 注册接口
 *
 * @author 杨振华
 * @since 2023/11/2
 */
@RestController
@Slf4j
@Api("注册接口")
public class RegisterController {

    @Autowired
    RegisterService registerService;
    // todo 注册出现403异常
    @ApiOperation("注册")
    @RequestMapping("register")
    public void register(@RequestBody RegisterDto registerDto){
        registerService.register(registerDto);
    }

}
